<template>
  <el-aside width="200px">
    <el-row class="tac">
      <el-col :span="24">
        <el-menu
            router
            default-active="this.$router.path"
            class="el-menu-vertical-demo"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b">

          <el-menu-item index="/Index/Main">
            <i class="el-icon-menu"></i>
            <span slot="title">首页</span>

          </el-menu-item>

          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-user-solid"></i>
              <span>用户管理</span>
            </template>
            <el-menu-item-group>

              <el-menu-item index="/Index/UserAccount">
                <i class="el-icon-s-custom"></i>
                用户账号
              </el-menu-item>
              <el-menu-item index="/Index/UserInfo">
                <i class="el-icon-s-custom"></i>
                用户信息
              </el-menu-item>
            </el-menu-item-group>

          </el-submenu>

          <el-submenu index="2">
            <template slot="title">
              <i class="el-icon-folder-opened"></i>
              <span>新闻管理</span>
            </template>
            <el-menu-item-group>

              <el-menu-item index="/Index/NewsAdd">
                <i class="el-icon-folder-opened"></i>
                新增
              </el-menu-item>
              <el-menu-item index="/Index/NewsInfo">
                <i class="el-icon-folder-opened"></i>
                查询
              </el-menu-item>
            </el-menu-item-group>
          </el-submenu>

          <el-submenu index="3">
            <template slot="title">
              <i class="el-icon-folder-opened"></i>
              <span>文章管理</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/Index/ArticleAdd">
                <i class="el-icon-folder-opened"></i>
                新增
              </el-menu-item>
              <el-menu-item index="/Index/ArticleInfo">
                <i class="el-icon-folder-opened"></i>
                查询
              </el-menu-item>
            </el-menu-item-group>
          </el-submenu>

          <el-menu-item index="/Index/AssessInfo">
            <i class="el-icon-menu"></i>
            <span slot="title">问卷管理</span>

          </el-menu-item>

          <el-menu-item index="/Index/admin_home">
            <i class="el-icon-menu"></i>
            <span slot="title">个人中心</span>

          </el-menu-item>

          <el-menu-item index="/login">
            <i class="el-icon-setting"></i>
            <span slot="title"  @click="remove">退出登录</span>
          </el-menu-item>
        </el-menu>
      </el-col>
    </el-row>
  </el-aside>


</template>



<script>
export default {
  name: "aside",
  methods:{
        remove (){
          window.sessionStorage.removeItem("token");
        }
      },




}




</script>

<style scoped>
.el-aside {
  background-color: #545c64;
  color: #333;
  text-align: center;
  line-height: 200px;
  height: 735px;
}
</style>
